package com.gitee.neuray.security.admin.executor.user.controller;

import com.gitee.neuray.security.admin.executor.user.biz.UserTestBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: zhhongyu
 * @description:
 * @since: Create in 12:48 2020/3/2
 */
@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserTestBiz userTestBiz;

    @RequestMapping(value = "master",method = RequestMethod.GET)
    public List getMasterUsers(){
        return userTestBiz.getMasterUsers();
    }
    @RequestMapping(value = "cluster",method = RequestMethod.GET)
    public List getClusterUsers(){
        return  userTestBiz.getClusterUsers();
    }
}
